package com.cvsher.springtest.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cvsher.springtest.bean.User;
import com.cvsher.springtest.dao.IUserDao;
import com.cvsher.springtest.service.IUserService;

@Service("userService")
public class UserService implements IUserService {
	
	@Autowired
	private IUserDao userDao;

	@Override
	public List<User> getAllUser() {
		return userDao.getAllUser();
	}

	@Override
	public List<User> getUsersByName(String name) {
		return userDao.getUsersByName(name);
	}

}
